﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainCont.Master" AutoEventWireup="true" CodeBehind="BankListEdit.aspx.cs" Inherits="Thksoft.Funds.BankListEdit" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

    <link href="../UserCotrols/My97DatePicker/skin/WdatePicker.css" rel="stylesheet" type="text/css" />

    <script src="../UserCotrols/My97DatePicker/WdatePicker.js" type="text/javascript"></script>

    <script type="text/javascript">
        //关闭页面
        function FORM_CLOSE() {

            var index = top.layer.getFrameIndex(window.name); //获取窗口索引
            try {
                top.$("#layui-layer" + index + " .layui-layer-close").click();
            } catch (e) {
                //强制关闭页面
                try {
                    top.layer.close(index);
                } catch (e) {

                }
            }
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
        <tr>
            <td valign="top">
                <div class="main_show_show">
                    <table border="0" cellpadding="0" cellspacing="0" width="100%" class="table">

                        <tr>
                            <td class="lefttd">公 司：
                            </td>

                            <td class="righttd">
                                <uc2:CtrlCompany runat="server" ID="FORM_COMPANY_ID" Width="180px" />
                            </td>
                            <td class="lefttd">所属银行：
                            </td>

                            <td class="righttd">
                                <asp:DropDownList ID="FORM_BANK_ID" runat="server" Width="180px"
                                    AutoPostBack="True" OnSelectedIndexChanged="FORM_BANK_ID_SelectedIndexChanged" readonly="readonly" Enabled="false">
                                    <%-- <asp:ListItem Value="-1">请选择</asp:ListItem>--%>
                                </asp:DropDownList>
                                <span style="color: Red;">*</span>
                            </td>
                        </tr>

                        <tr>

                            <td class="lefttd">账户类型：
                            </td>

                            <td class="righttd">
                                <asp:DropDownList ID="FORM_TYPE" runat="server" Width="180px"
                                    AutoPostBack="True" OnSelectedIndexChanged="FORM_TYPE_SelectedIndexChanged" Enabled="false">
                                    <asp:ListItem Text="收入户" Value="2" Selected="True">收入户</asp:ListItem>
                                    <asp:ListItem Text="支出户" Value="1">支出户</asp:ListItem>
                                </asp:DropDownList>
                                <%-- <span style="color: Red;">*</span>--%>
                            </td>

                            <td class="lefttd">主账号：
                            </td>
                            <td class="righttd">
                                <input id="txtZnum" runat="server" class="txt_input" style="width: 180px;" readonly="readonly" /><%--onblur="validate();"--%>
                                <%--  <span style=" color:Red;">*</span>--%>
                            </td>
                        </tr>

                        <tr>
                            <td class="lefttd">对方账号：
                            </td>
                            <td class="righttd">
                                <input id="txtDfzh" runat="server" class="txt_input" style="width: 179px;" readonly="readonly" />
                                <%--  <span style=" color:Red;">*</span>--%>
                            </td>
                            <td class="lefttd">对方账户名称：
                            </td>

                            <td class="righttd">
                                <asp:TextBox ID="txtDfzhName" Width="180px" runat="server" CssClass="txt_input"></asp:TextBox>
                                <span style="color: Red;">可改</span>
                            </td>
                        </tr>

                        <tr>
                            <td class="lefttd">借贷标志：
                            </td>
                            <td class="righttd">
                                <asp:DropDownList ID="ddlCheckType" runat="server" Width="80px" CssClass="lblName" Enabled="false">
                                    <asp:ListItem Value="0" Selected="True">转出</asp:ListItem>
                                    <asp:ListItem Value="1">转入</asp:ListItem>
                                </asp:DropDownList>
                                <%--<span style=" color:Red;">*</span>--%>
                            </td>

                            <td class="lefttd">发生额：
                            </td>

                            <td class="righttd">

                                <input id="txtamont1" runat="server" class="txt_input" onkeydown="return NoNumber()" style="width: 179px;" readonly="readonly" />
                                <%--  <asp:TextBox ID="txtAmount" Width="180px" runat="server" CssClass="txt_input"></asp:TextBox>--%>
                                <span style="color: Red;">*元</span>
                            </td>
                        </tr>

                        <tr>

                            <td class="lefttd">发生时间：
                            </td>
                            <td class="righttd">
                                <input id="txtDate" runat="server" class="Wdate" style="width: 180px;" type="text" /><%--onclick=" WdatePicker()"时间的--%>
                                <%-- <span style=" color:Red;">*</span>--%>
                            </td>

                            <td class="lefttd">银行流水码：
                            </td>

                            <td class="righttd">
                                <asp:TextBox ID="txtBanknum" Width="180px" Text="0" runat="server" CssClass="txt_input" ReadOnly="true"></asp:TextBox>
                            </td>
                        </tr>

                        <tr>
                            <td class="lefttd">备注：
                            </td>
                            <td colspan="3" class="righttd">
                                <asp:TextBox ID="txtRemark" Width="490px" TextMode="MultiLine" runat="server" CssClass="txt_input"></asp:TextBox>
                                <span style="color: Red;">可修改</span>
                            </td>
                        </tr>

                        <tr>
                            <td style="padding-left: 40%;" colspan="4">
                                <asp:Button ID="btnSave" runat="server" CssClass="bt_css_s" Text="保存" OnClick="btnSave_Click" />&nbsp;
                            <asp:Button ID="Button1" runat="server" CssClass="bt_css_s" Text="返回" OnClick="btnReturn_Click" />
                            </td>
                        </tr>
                    </table>
                </div>
            </td>
        </tr>
    </table>
    <%--<script type="text/javascript">
          function validate() {
              var name = document.getElementById("txtZnum");
              if (name.value == 2) {
                  alert("主账户要与银行账户设置相匹配!");
                  name.focus();
                  return false;
              }
              return true;
          }
        </script>--%>
</asp:Content>